import { createI18n } from "vue-i18n";
import messages from '../lang/index'
const locale = localStorage.getItem("lang") || "zh"

const i18n = createI18n({
    locale,
    globalInjection: true,
    fallbackLocale: "zh",
    legacy: false,
    messages
})

export default i18n